package com.itheima.random;

import java.util.Random;
import java.util.Scanner;

public class GuessNumber {
    public static void main(String[] args) {
        Random r = new Random();
        Scanner sc = new Scanner(System.in);
        int num = r.nextInt(100) + 1;
        while (true) {
            int myNum = sc.nextInt();
            if (num < myNum) {
                System.out.println("大了");
            } else if (num > myNum) {
                System.out.println("小了");
            } else {
                System.out.println("猜对了");
                break;
            }
        }

    }
}
